<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pyprocessing.flippolicy.BackupWindow</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pyprocessing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pyprocessing-module.html">Package&nbsp;pyprocessing</a> ::
        <a href="pyprocessing.flippolicy-module.html">Module&nbsp;flippolicy</a> ::
        Class&nbsp;BackupWindow
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pyprocessing.flippolicy.BackupWindow-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class BackupWindow</h1><p class="nomargin-top"><span class="codelink"><a href="pyprocessing.flippolicy-pysrc.html#BackupWindow">source&nbsp;code</a></span></p>
<pre class="base-tree">
                  object --+                
                           |                
pyglet.event.EventDispatcher --+            
                               |            
        pyglet.window.BaseWindow --+        
                                   |        
     pyglet.window.win32.Win32Window --+    
                                       |    
                      <a href="pyprocessing.flippolicy.PyprocessingWindow-class.html">PyprocessingWindow</a> --+
                                           |
                                          <strong class="uidshort">BackupWindow</strong>
</pre>

<hr />
<p>This is a pyglet window for which an array is used to keep the back 
  buffer contents consistent. The flip method is overridden so that instead
  of merely swapping the back and front buffers, the back buffer contents 
  are copied to an array inside the CPU's memory, and after the flip the 
  contents are copied back to the back buffer.</p>

<!-- ==================== NESTED CLASSES ==================== -->
<a name="section-NestedClasses"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Nested Classes</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-NestedClasses"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.window.BaseWindow</code></b>:
      <code><a href="pyglet.window._WindowMetaclass-class.html">__metaclass__</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pyprocessing.flippolicy.BackupWindow-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">*args</span>,
        <span class="summary-sig-arg">**keyargs</span>)</span><br />
      Constructor</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pyprocessing.flippolicy-pysrc.html#BackupWindow.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pyprocessing.flippolicy.BackupWindow-class.html#flip" class="summary-sig-name">flip</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Override the flip method.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pyprocessing.flippolicy-pysrc.html#BackupWindow.flip">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pyprocessing.flippolicy.BackupWindow-class.html#on_resize" class="summary-sig-name">on_resize</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">w</span>,
        <span class="summary-sig-arg">h</span>)</span><br />
      Window changed size.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pyprocessing.flippolicy-pysrc.html#BackupWindow.on_resize">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.window.win32.Win32Window</code></b>:
      <code>activate</code>,
      <code>close</code>,
      <code>dispatch_events</code>,
      <code>dispatch_pending_events</code>,
      <code>get_location</code>,
      <code>get_size</code>,
      <code>get_system_mouse_cursor</code>,
      <code>maximize</code>,
      <code>minimize</code>,
      <code>set_caption</code>,
      <code>set_exclusive_keyboard</code>,
      <code>set_exclusive_mouse</code>,
      <code>set_icon</code>,
      <code>set_location</code>,
      <code>set_maximum_size</code>,
      <code>set_minimum_size</code>,
      <code>set_mouse_platform_visible</code>,
      <code>set_size</code>,
      <code>set_visible</code>,
      <code>set_vsync</code>,
      <code>switch_to</code>
      </p>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.window.win32.Win32Window</code></b> (private):
      <code>_client_to_window_pos</code>,
      <code>_client_to_window_size</code>,
      <code>_create</code>,
      <code>_event_char</code>,
      <code>_event_close</code>,
      <code>_event_entersizemove</code>,
      <code>_event_erasebkgnd</code>,
      <code>_event_getminmaxinfo</code>,
      <code>_event_key</code>,
      <code>_event_killfocus</code>,
      <code>_event_lbuttondown</code>,
      <code>_event_lbuttonup</code>,
      <code>_event_mbuttondown</code>,
      <code>_event_mbuttonup</code>,
      <code>_event_mousebutton</code>,
      <code>_event_mouseleave</code>,
      <code>_event_mousemove</code>,
      <code>_event_mousewheel</code>,
      <code>_event_move</code>,
      <code>_event_paint</code>,
      <code>_event_rbuttondown</code>,
      <code>_event_rbuttonup</code>,
      <code>_event_setfocus</code>,
      <code>_event_size</code>,
      <code>_event_sizing</code>,
      <code>_event_syscommand</code>,
      <code>_get_modifiers</code>,
      <code>_get_vsync</code>,
      <code>_immediate_redraw</code>,
      <code>_recreate</code>,
      <code>_reset_exclusive_mouse_screen</code>,
      <code>_wnd_proc</code>
      </p></div>
    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.window.BaseWindow</code></b>:
      <code>clear</code>,
      <code>dispatch_event</code>,
      <code>draw_mouse_cursor</code>,
      <code>on_close</code>,
      <code>on_key_press</code>,
      <code>set_fullscreen</code>,
      <code>set_mouse_cursor</code>,
      <code>set_mouse_visible</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.event.EventDispatcher</code></b>:
      <code>event</code>,
      <code>pop_handlers</code>,
      <code>push_handlers</code>,
      <code>remove_handler</code>,
      <code>remove_handlers</code>,
      <code>set_handler</code>,
      <code>set_handlers</code>
      </p>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.event.EventDispatcher</code></b> (private):
      <code>_get_handlers</code>,
      <code>_raise_dispatch_exception</code>
      </p></div>
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__str__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS METHODS ==================== -->
<a name="section-ClassMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.event.EventDispatcher</code></b>:
      <code>register_event_type</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== STATIC METHODS ==================== -->
<a name="section-StaticMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Static Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-StaticMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.window.win32.Win32Window</code></b> (private):
      <code>_get_location</code>
      </p></div>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.window.win32.Win32Window</code></b> (private):
      <code>_dc</code>,
      <code>_ex_ws_style</code>,
      <code>_exclusive_keyboard</code>,
      <code>_exclusive_keyboard_focus</code>,
      <code>_exclusive_mouse</code>,
      <code>_exclusive_mouse_client</code>,
      <code>_exclusive_mouse_focus</code>,
      <code>_exclusive_mouse_screen</code>,
      <code>_has_focus</code>,
      <code>_hidden</code>,
      <code>_hwnd</code>,
      <code>_maximum_size</code>,
      <code>_minimum_size</code>,
      <code>_mouse_platform_visible</code>,
      <code>_platform_event_names</code>,
      <code>_tracking</code>,
      <code>_wgl_context</code>,
      <code>_window_class</code>,
      <code>_ws_style</code>
      </p></div>
    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.window.BaseWindow</code></b>:
      <code>CURSOR_CROSSHAIR</code>,
      <code>CURSOR_DEFAULT</code>,
      <code>CURSOR_HAND</code>,
      <code>CURSOR_HELP</code>,
      <code>CURSOR_NO</code>,
      <code>CURSOR_SIZE</code>,
      <code>CURSOR_SIZE_DOWN</code>,
      <code>CURSOR_SIZE_DOWN_LEFT</code>,
      <code>CURSOR_SIZE_DOWN_RIGHT</code>,
      <code>CURSOR_SIZE_LEFT</code>,
      <code>CURSOR_SIZE_LEFT_RIGHT</code>,
      <code>CURSOR_SIZE_RIGHT</code>,
      <code>CURSOR_SIZE_UP</code>,
      <code>CURSOR_SIZE_UP_DOWN</code>,
      <code>CURSOR_SIZE_UP_LEFT</code>,
      <code>CURSOR_SIZE_UP_RIGHT</code>,
      <code>CURSOR_TEXT</code>,
      <code>CURSOR_WAIT</code>,
      <code>CURSOR_WAIT_ARROW</code>,
      <code>WINDOW_STYLE_BORDERLESS</code>,
      <code>WINDOW_STYLE_DEFAULT</code>,
      <code>WINDOW_STYLE_DIALOG</code>,
      <code>WINDOW_STYLE_TOOL</code>,
      <code>event_types</code>,
      <code>has_exit</code>,
      <code>invalid</code>
      </p>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.window.BaseWindow</code></b> (private):
      <code>_allow_dispatch_event</code>,
      <code>_caption</code>,
      <code>_config</code>,
      <code>_context</code>,
      <code>_default_height</code>,
      <code>_default_width</code>,
      <code>_enable_event_queue</code>,
      <code>_event_queue</code>,
      <code>_fullscreen</code>,
      <code>_height</code>,
      <code>_mouse_cursor</code>,
      <code>_mouse_exclusive</code>,
      <code>_mouse_in_window</code>,
      <code>_mouse_visible</code>,
      <code>_mouse_x</code>,
      <code>_mouse_y</code>,
      <code>_resizable</code>,
      <code>_screen</code>,
      <code>_style</code>,
      <code>_visible</code>,
      <code>_vsync</code>,
      <code>_width</code>,
      <code>_windowed_location</code>,
      <code>_windowed_size</code>
      </p></div>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.event.EventDispatcher</code></b> (private):
      <code>_event_stack</code>
      </p></div>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.window.win32.Win32Window</code></b>:
      <code>vsync</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>pyglet.window.BaseWindow</code></b>:
      <code>caption</code>,
      <code>config</code>,
      <code>context</code>,
      <code>display</code>,
      <code>fullscreen</code>,
      <code>height</code>,
      <code>resizable</code>,
      <code>screen</code>,
      <code>style</code>,
      <code>visible</code>,
      <code>width</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">*args</span>,
        <span class="sig-arg">**keyargs</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pyprocessing.flippolicy-pysrc.html#BackupWindow.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Constructor</p>
  <dl class="fields">
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="flip"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">flip</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pyprocessing.flippolicy-pysrc.html#BackupWindow.flip">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Override the flip method.</p>
  <dl class="fields">
    <dt>Overrides:
        pyglet.window.BaseWindow.flip
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="on_resize"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">on_resize</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">w</span>,
        <span class="sig-arg">h</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pyprocessing.flippolicy-pysrc.html#BackupWindow.on_resize">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Window changed size. Must reallocate backing buffer.</p>
  <dl class="fields">
    <dt>Overrides:
        pyglet.window.BaseWindow.on_resize
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pyprocessing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Jun 11 22:06:46 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
